#pragma once

#include <QWheelEvent>
#include <QImage>
#include <QGraphicsScene>
#include <QGraphicsView>
#include <QtOpenGLWidgets/QtOpenGLWidgets>

QT_BEGIN_NAMESPACE
namespace Ui
{
    class image;
}
QT_END_NAMESPACE

class imageNo360 : public QGraphicsView
{
    Q_OBJECT

public:
    imageNo360(QWidget *parent = nullptr);
    ~imageNo360();
    void setImage(QImage image);
signals:
    void imageDropped(QString image);

private:
    QGraphicsScene *scene;
    QOpenGLWidget *opengl;

protected:
    virtual void wheelEvent(QWheelEvent *event) override;
    virtual void dragEnterEvent(QDragEnterEvent *event) override;
    virtual void dropEvent(QDropEvent *event) override;
};
